package com.luoqiz.project.screenBroadcard.client;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class ClientUI extends JFrame{

	private static final long serialVersionUID = -8743436097876310674L;
	public JLabel imageShow;

	public ClientUI() {
		this.setLayout(null);
		this.setTitle("客户端显示");
		this.setBounds(200, 200, 700, 500);
		this.setVisible(true);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		init();
	}

	private void init() {
		imageShow=new JLabel();
		imageShow.setBounds(0, 0, 700, 500);
//		BufferedImage b = null;
//		try {
//			b = ImageIO.read(new File("d:/dome/1.jpg"));
//		} catch (IOException e) {
//			e.printStackTrace();
//		}
//		Icon icon=new ImageIcon(b);
////		Icon icon=new ImageIcon("d:/dome/1.jpg");
//		imageShow.setIcon(icon);
		this.add(imageShow);
		this.repaint();
		UIRefreshThread t = new UIRefreshThread(this);
		t.setFlag(true);
		t.start();
	}
}
